from django.contrib import admin
from message.models import Message

class AdminMessage(admin.ModelAdmin):

    fields = ('email', 'subject', 'body', 'date')
    list_filter = ()
    list_display = ('date', 'email', 'subject')
    search_fields = ('email', 'subject', 'body')

admin.site.register(Message, AdminMessage)
